package by.bsuir.util;

import java.io.IOException;
import java.net.UnknownHostException;

import by.bsuir.entity.Node;

/**
 * @author Raman_Pliashkou
 *
 */
public class Main {

    public static void main(String[] args) throws UnknownHostException, IOException {
        InetScan inetScan = new InetScan("properties/access.properties");
        Node node = inetScan.scan("EPBYVITW0032.minsk.epam.com");
        Node search =  inetScan.search("c",node);
        CompositeIterator iterator = new CompositeIterator(search.createIterator());
        while(iterator.hasNext()) {
            Component component = (Component) iterator.next();
            Node n = (Node) component;
            System.out.println(n.getName());
        }
    }
}
